package com.czxy.service;

import com.czxy.dao.BaseDictMapper;
import com.czxy.domain.BaseDict;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;

public class BaseDictServiceImpl implements BaseDictService {
    @Resource
    private BaseDictMapper dictMapper;



    @Override
    public List<BaseDict> findAll() {

        Example example = new Example(BaseDict.class);

        Example.Criteria ct = example.createCriteria();

        ct.andEqualTo("dictTypeCode",BaseDict.CUST_SOURCE_TYPE_CODE);
        List<BaseDict> baseDicts = dictMapper.selectByExample(example);

        return baseDicts;
    }
}
